package com.example.smartagriculture.entity;

import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@Setter
@Getter
@Data
@NoArgsConstructor
@AllArgsConstructor
@Configuration
@Component
@ToString
@PropertySource("classpath:application.yml")
@ConfigurationProperties(prefix = "socket")
public class SocketEntity {
    private Integer port;
    private String host;
}
